import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'flutter_share_platform_interface.dart';

/// An implementation of [FlutterSharePlatform] that uses method channels.
class MethodChannelFlutterShare extends FlutterSharePlatform {
  /// The method channel used to interact with the native platform.
  @visibleForTesting
  final methodChannel = const MethodChannel('flutter/share');

  @override
  Future<bool?> share(Map<String, String> params) async {
    return await methodChannel.invokeMethod<bool>('share', params);
  }
}
